var player		: GameObject;
private var altObject 	: GameObject;
var altExit 	: GameObject[];
	
function Awake()
{	
	// Get a list of all the objects in the scene that have been tagged as "AltExit"
	altExit = GameObject.FindGameObjectsWithTag("AltExit");
}	

function OnTriggerEnter(pCollision : Collider)
{
	if(pCollision.tag == "Player")
	{
		// Transport player position to the hidden platform for the  alternate exit
		player.transform.localPosition.x = 3.5;
		player.transform.localPosition.y = 7.7;
		player.transform.localPosition.z = -17;

		// For every GameObject that has been tagged as "AltExit" and is stored in the altExit
		for(altObject in altExit)
		{
			// If objects aren't visible
			if(altObject.renderer.enabled.Equals(false))
				// Make them visible (Render them)
				altObject.renderer.enabled = true;
		}
	}
}